//
//  NSArray+wgExpand.h
//  WGTool
//
//  Created by czw on 2022/8/19.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface NSArray (wgExpand)
/// 获取数组中的对象
/// @param index 为正值 左->右 , 负值   左<-右
- (id)wg_objAtIndex:(NSInteger)index;
 
/// 数组是否为空
- (BOOL)wg_isEmpty;

/// 映射
/// @param mapper 映射规则
- (NSArray *)wg_mapper:(id(^)(id obj))mapper;

/// 筛选
/// @param filter 筛选规则
- (NSArray *)wg_filter:(BOOL(^)(id obj))filter;

/// 数组元素拼接
 -(NSString *(^)(NSString *separator))wg_joinedByString;
@end

NS_ASSUME_NONNULL_END
